package edu.towson.greenteam.tab;

public class TabHasOfferItr extends TabItr {

	public TabHasOfferItr(Tabs tabsIntance) {
		this.allTabs = tabsIntance;
	    index = 0;
		calcNext();
	}

	@Override
	public boolean canProceed(Tab testTab) {
		//only can proceed if the tab has a discount
		return (testTab.getDiscount() == 0);
	}

	
}
